<HTML>
<HEAD>
<title>DataOutput2 - </title>
<link rel="stylesheet" href="../../style.css">
</HEAD>
<BODY>
<a href="../index.html">org.mapdb</a>&nbsp;/&nbsp;<a href=".">DataOutput2</a><br/>
<br/>
<h1>DataOutput2</h1>
<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">DataOutput2</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html"><span class="identifier">OutputStream</span></a><span class="symbol">, </span><a href="http://docs.oracle.com/javase/6/docs/api/java/io/DataOutput.html"><span class="identifier">DataOutput</span></a></code><br/>
<p>Output of serialization </p>
<br/>
<br/>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<a href="-init-.html">&lt;init&gt;</a></td>
<td>
<code><span class="identifier">DataOutput2</span><span class="symbol">(</span><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Properties</h3>
<table>
<tbody>
<tr>
<td>
<a href="buf.html">buf</a></td>
<td>
<code><span class="keyword">var </span><span class="identifier">buf</span><span class="symbol">: </span><span class="identifier">ByteArray</span></code></td>
</tr>
<tr>
<td>
<a href="pos.html">pos</a></td>
<td>
<code><span class="keyword">var </span><span class="identifier">pos</span><span class="symbol">: </span><span class="identifier">Int</span></code></td>
</tr>
<tr>
<td>
<a href="size-mask.html">sizeMask</a></td>
<td>
<code><span class="keyword">var </span><span class="identifier">sizeMask</span><span class="symbol">: </span><span class="identifier">Int</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<a href="copy-bytes.html">copyBytes</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">copyBytes</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">ByteArray</span></code></td>
</tr>
<tr>
<td>
<a href="ensure-avail.html">ensureAvail</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">ensureAvail</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$ensureAvail(kotlin.Int)/n">n</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>make sure there will be enough space in buffer to write N bytes </p>
</td>
</tr>
<tr>
<td>
<a href="pack-int.html">packInt</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">packInt</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$packInt(kotlin.Int)/value">value</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="pack-int-bigger.html">packIntBigger</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">packIntBigger</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$packIntBigger(kotlin.Int)/value">value</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="pack-long.html">packLong</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">packLong</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$packLong(kotlin.Long)/value">value</span><span class="symbol">:</span>&nbsp;<span class="identifier">Long</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="pack-long-array.html">packLongArray</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">packLongArray</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$packLongArray(kotlin.LongArray, kotlin.Int, kotlin.Int)/array">array</span><span class="symbol">:</span>&nbsp;<span class="identifier">LongArray</span><span class="symbol">, </span><span class="identifier" id="org.mapdb.DataOutput2$packLongArray(kotlin.LongArray, kotlin.Int, kotlin.Int)/fromIndex">fromIndex</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">, </span><span class="identifier" id="org.mapdb.DataOutput2$packLongArray(kotlin.LongArray, kotlin.Int, kotlin.Int)/toIndex">toIndex</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write.html">write</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">write</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$write(kotlin.Int)/b">b</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">write</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$write(kotlin.ByteArray)/b">b</span><span class="symbol">:</span>&nbsp;<span class="identifier">ByteArray</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">write</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$write(kotlin.ByteArray, kotlin.Int, kotlin.Int)/b">b</span><span class="symbol">:</span>&nbsp;<span class="identifier">ByteArray</span><span class="symbol">, </span><span class="identifier" id="org.mapdb.DataOutput2$write(kotlin.ByteArray, kotlin.Int, kotlin.Int)/off">off</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">, </span><span class="identifier" id="org.mapdb.DataOutput2$write(kotlin.ByteArray, kotlin.Int, kotlin.Int)/len">len</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-boolean.html">writeBoolean</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeBoolean</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeBoolean(kotlin.Boolean)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Boolean</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-byte.html">writeByte</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeByte</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeByte(kotlin.Int)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-bytes.html">writeBytes</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeBytes</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeBytes(kotlin.String)/s">s</span><span class="symbol">:</span>&nbsp;<span class="identifier">String</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-char.html">writeChar</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeChar</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeChar(kotlin.Int)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-chars.html">writeChars</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeChars</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeChars(kotlin.String)/s">s</span><span class="symbol">:</span>&nbsp;<span class="identifier">String</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-double.html">writeDouble</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeDouble</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeDouble(kotlin.Double)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Double</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-float.html">writeFloat</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeFloat</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeFloat(kotlin.Float)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Float</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-int.html">writeInt</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeInt</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeInt(kotlin.Int)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-long.html">writeLong</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeLong</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeLong(kotlin.Long)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Long</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-short.html">writeShort</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeShort</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeShort(kotlin.Int)/v">v</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
<tr>
<td>
<a href="write-u-t-f.html">writeUTF</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">writeUTF</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.DataOutput2$writeUTF(kotlin.String)/s">s</span><span class="symbol">:</span>&nbsp;<span class="identifier">String</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
